app.controller("checkclassController",function($scope, $http,$routeParams){
    $scope.pact_id=$routeParams.id;
    $scope.class_name=$routeParams.class_name;
    console.log($scope.pact_id)
    // 报课单列表
    $http({
        method: 'POST',
        url: '/OA/enrolclazz/list?state=2',
        data:$.param({pact_id:$scope.pact_id}),
        headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
    }).success(function (response) {
        console.log(response)
        $scope.enrol_datas = response.data;
        $scope.check=function ($index) {
            $("#check").modal("show");
        }
        console.log($scope.arrs)
    })
    // 退课单列表
    $http({
        method: 'POST',
        url: '/OA/dropclazz/list?state=2',
        data:$.param({pact_id:$scope.pact_id}),
        headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
    }).success(function (response) {
        console.log(response)
        $scope.drop_datas = response.data;
        console.log($scope.arrs)
    })
    // 缴费记录
    $http({
        method:"POST",
        url:"/OA/mend/list?state=2",
        data:$.param({pact_id:$scope.pact_id}),
        headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
    }).success(function (response){
        console.log(response)
        $scope.mend_datas = response.data;
        console.log($scope.arrs)
    })
    // 学员信息展示
    $http({
        method:"POST",
        url:"/OA/clazz/query ",
        data:$.param({id:$scope.pact_id}),
        headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
    }).success(function (response){
        console.log(response)
        $scope.findstudent=response.data;
    })
    //班课报课情况
    $http({
        method:"POST",
        url:"/OA/subjectpactclazz/list ",
        data:$.param({pact_id:$scope.pact_id}),
        headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
    }).success(function (response){
        console.log(response)
        $scope.subjectpactclazz=response.data;
    })

})

